/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homeworkDemo05;

/**
 *
 *2010411102黄钰
 */
public class CheckEmail {
    public static void main(String[] args) {
      if(args.length==0)
   System.out.println("huangyu@163.com");
  else
   if(args[0].matches("^\\w+@\\w+\\.(com|cn)"))
     System.out.println("这是一个E—mail地址");
   else
    System.out.println("这不是一个E—mail地址");
 }

  
    }
  
    
   
   
        
        
            
            
        
    
            
        
    


